:root {
  --main-color: #ffffff;
  --second-color: #fafafa;
  --bar-color: #8dc26f;
  --main-text-color: #000000;
}

// @import "../font/iconfont-class.css";

.side-bar-con {
  z-index: 1000;
  position: fixed;
  transition: all 0.4s;
  margin-left: -300px;
  width: 300px;
  top: 0;
  bottom: 0;
  background-color: var(--second-color);
  box-shadow: 0px 0px 5px 0px rgba(0, 0, 0, 0.4);
  user-select: none;

  .main-side-bar {
    width: 100%;
    height: 100%;
    background-color: var(--second-color);

    .user-account-info {
      z-index: 99;
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 30px;
      padding-bottom: 30px;
      color: #444;
      width: 100%;
      overflow: hidden;

      .avatar {
        width: 90px;
        height: 90px;
        border-radius: 50%;
        box-shadow: 0px 0px 3px 0px rgba(0, 0, 0, 0.4);
        overflow: hidden;
        margin-bottom: 20px;
        background-color: #ffffff;
        cursor: pointer;

        img {
          width: 100%;
        }
      }

      .user-name {
        font-size: 18px;
        font-weight: bold;
      }

      .user-intro {
        font-size: 14px;
        line-height: 1.5;
      }

      // 头像背景
      // &::after {
      //   content: "";
      //   z-index: -1;
      //   position: absolute;
      //   top: 0;
      //   bottom: 0;
      //   left: 0;
      //   right: 0;
      //   border-radius: 0 0 50% 50% / 0 0 43% 43%;
      //   background-color: var(--bar-color);
      // }

      @media screen and (max-width: 400px) {
        .user-name {
          font-size: 16px;
        }

        .user-intro {
          font-size: 12px;
        }
      }
    }

    .side-bar {
      padding-top: 50px;

      .side-bar-item {
        padding-left: 60px;
        font-size: 20px;
        height: 50px;
        line-height: 50px;
        border-right: 5px solid transparent;
        transition: all 0.2s;
        cursor: pointer;

        // img {
        //     width: 25px;
        //     margin-right: 20px;
        // }

        .iconfont-class {
          font-size: 26px;
          vertical-align: middle;
          margin-right: 20px;
        }

        &:hover {
          border-right-color: var(--bar-color);
          background-color: #cae2bc;
        }

        @media screen and (max-width: 400px) {
          font-size: 16px;

          .iconfont-class {
            font-size: 20px;
          }
        }
      }

      .active-side-bar-item {
        border-right-color: var(--bar-color);
        background-color: #cae2bc;

        .iconfont-class {
          color: #78c24e;
        }
      }
    }

    .menu-btn {
      position: fixed;
      bottom: 0;
      left: 0;
      border: 0;
      outline: 0;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      overflow: hidden;
      background-color: rgba(141, 194, 111, 0.8);
      line-height: 40px;
      text-align: center;
      user-select: none;
      // display: none;

      .iconfont-class {
        font-size: 20px;
      }

      &:active {
        box-shadow: inset 0px 0px 10px rgba(0, 0, 0, 0.2);
      }
    }
  }

  .mask {
    z-index: -1;
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(102, 102, 102, 0.4);
    transition: all 0.4s;
    display: none;
  }

  @media screen and (max-width: 400px) {
    width: 80%;
    min-width: 220px;
  }
}

.side-bar-con-shown {
  margin-left: 0px;
}
